package com.kaifamiao.controller;

import com.kaifamiao.preventrefresh.AccessLimit;
import com.kaifamiao.util.ResultT;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PreventRefreshController {

    @AccessLimit(minutes=2, maxCount=10, needLogin=true)
    @RequestMapping("/fangshua")
    @ResponseBody
    public ResultT fangshua(){
        System.out.println("接口防刷测试");
        return ResultT.ok("请求成功");

    }

}
